package org.momo.rpc.loadbalance;

import org.momo.rpc.extention.SPI;
import org.momo.rpc.protocol.RpcRequest;
import org.momo.rpc.provider.model.ProviderRegistryInfo;

import java.util.List;

/**
 * 负载均衡策略接口
 */
@SPI
public interface LoadBalancer {

    ProviderRegistryInfo loadBalance(RpcRequest request, List<ProviderRegistryInfo> possibleServiceList);

}
